package com.vrland.web.front.controller;

import java.security.Principal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/admin")
public class AdminPageController {
	
	@RequestMapping(method = RequestMethod.GET)
	public ModelAndView getAdminPage(Principal principal) {
		ModelAndView result = new ModelAndView();
		result.setViewName("admin");
		result.addObject("username", principal.getName());
		return result;
	}
}
